<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="div">{{name}}</div>
</body>
<script src="../vue/vue.js"></script>
<script>
    new Vue({
        el:"#div",
        data:{
            name:"哈士奇"
        },
        methods:{},
        created(){
            alert(" 创建")
        },
        mounted(){
            alert("mounted挂载")
        }
    });
</script>
</html>